/**
 * 
 */
package org.swing.utility.common.thread;

import java.util.concurrent.atomic.AtomicInteger;

import org.swing.utility.common.imp.IAtomicInteger;

/**
 * @author lqnhu
 *
 */
public class AtomicIntegerAdapter implements IAtomicInteger {
	private AtomicInteger m_atomicInteger;

	public AtomicIntegerAdapter(int initialValue) {
		m_atomicInteger = new AtomicInteger(initialValue);
	}

	/**
	 * @see org.testng.internal.thread.IAtomicInteger#get()
	 */
	public int get() {
		return m_atomicInteger.get();
	}

	/**
	 * @see org.testng.internal.thread.IAtomicInteger#incrementAndGet()
	 */
	public int incrementAndGet() {
		return m_atomicInteger.incrementAndGet();
	}

}
